import api from './index'

// 表单下拉框数据请求接口
export default {
	addCertifica: (params) => api.post('/system/certifica/info', params),
	// 查询运营商列表
	getCompaniesList: (params) => api.get('/system/companies/getList', params),
	// 查询网点
	getPointList: (params) => api.get('/system/points/getList', params),
	// 网点详情
	getPointDetail: (id) => api.get('/system/points/'+id),
	// 查询所有运营商列表
	getAllCompaniesList: (params) => api.get('/system/companies/list', params),
	// 查询所有运营商和网点关系列表
	getCompanypointsList: (params) => api.get('/system/points/getcompanyList', params),
	// 卖车
	saveAdminIssue: (params) => api.post('/applet/BuySellCar/saveAdminIssue', params),
	// 买车
	saveUserIssue: (params) => api.post('/applet/BuySellCar/saveUserIssue', params),
	// 新增销售公司入驻
	save: (params) => api.post('/applet/AutomobileMarket/save', params),
	// 查看自己入驻的销售公司
	selectUserAutomobileMarket: (params) => api.get('/applet/AutomobileMarket/selectUserAutomobileMarket', params),
	// 销售公司列表
	automobileMarketList: (params) => api.get('/applet/AutomobileMarket/list', params),
	// 销售公司列表详情
	automobileMarketGetInfo: (id) => api.get('/applet/AutomobileMarket/getInfo/'+id),
	// 买车列表
	getAppletSellBuyPage: (params) => api.get('/applet/BuySellCar/getAppletSellBuyPage', params),
	// 我的买车列表
	getAppletUserSellBuyPage: (params) => api.get('/applet/BuySellCar/getAppletUserSellBuyPage', params),
	// 卖车列表
	getAppletSellCarPage: (params) => api.get('/applet/BuySellCar/getAppletSellCarPage', params),
	// 买车卖车详情
	getInfoById: (params) => api.get('/applet/BuySellCar/getInfoById',params),
	// 日志
	saveLog: (params) => api.post('/applet/BuySellCarLog/saveLog',params),
	// 下架
	below: (params) => api.get('/applet/BuySellCar/below',params),
	// 下架
	flag: (params) => api.get('/flag',params),
}